package com.ktjy.service;

import com.ktjy.dao.PetDao;
import com.ktjy.entity.Pet;
import jakarta.annotation.Resource;
import org.springframework.stereotype.Service;

@Service("petService")
public class PetServiceImpl implements PetService {
    @Resource
    PetDao petDao;

    @Override
    public boolean insert(Pet pet) {

        if(petDao.insert(pet)>0){
//            int s=1/0;
            return true;
        }
        return false;
    }
}
